<div class="line-label">
  <%= page_entries_info(@localusers) %>
</div>

<% if @localusers.size > 0 %>
  <% paginated_section(@localusers, options_will_paginate({:params => {:controller => :localusers, :action => :selector_users_list_from_paginate, :search_email => params[:search_email], :id => nil}})) do %>

    <table style="min-width: 350px; max-width: 350px;">
        <thead>
          <tr>
            <th><%=t('activerecord.attributes.user.email')%></th>
            <th><%=t('title_actions')%></th>
          </tr>
        </thead>
        <tbody>
          <% @localusers.each do |localuser| %>
            <tr>
              <td><%=h localuser.email %></td>
              <td class="action" style="text-align: center;"><a href = "javascript:void(0)" onclick = "jQuery(function ($) {$.modal.close();});setUser(<%=localuser.id%>,'<%=session[:component_user_id]%>','<%=localuser.email%>','<%=session[:component_user_name]%>');"><%=t('btn_selected')%></a></td>
            </tr>
          <% end %>
         </tbody>
      </table>
  <% end %>
<% end %>
